﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class NV : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        var th = new TemplateHelper(Server.MapPath("~/template/default/"));

        IList<User> list = new List<User>() { };

        list.Add(new User() { Name = "wdzr_826", Class = "AAAAAAAAAAAAAAAAAAAA" });
        list.Add(new User() { Name = "dayu", Class = "BBBBBBBBBBBBBBBBBBB" });
        list.Add(new User() { Name = "daniel.he", Class = "CCCCCCCCCCCCCCCCCCCC" });
        list.Add(new User() { Name = "hejun", Class = "DDDDDDDDDDDDDDDDDDDDD" });
        list.Add(new User() { Name = "魏之名将淳于导", Class = "EEEEEEEEEEEEEEEEEEEEE" });

        th.Put("models", list);
        string str = th.BuildString("index.htm");
        Response.Write(str.Replace("\"images/", "\"/template/default/images/").Replace("(images/", "(/template/default/images/"));
        Response.End();
    }


    public class User
    {
        public string Name { get; set; }
        public string Class { get; set; }
    }
}
